package com.gable.exhibition.service;

import com.gable.common.util.ReturnResultUtil;
import com.gable.exhibition.view.NewsView;

/**
 * Created by Lesson on 2018/3/9.
 */
public interface NewsService {

    /**
     * 获取新闻列表
     * @param newsView
     * @Create user jacky
     * @Create date 2018/3/9
     * @return
     */
    ReturnResultUtil queryNewsList(NewsView newsView);

    /**
     * 新增新闻
     * @param newsView
     * @Create user jacky
     * @Create date 2018/3/9
     * @return
     */
    ReturnResultUtil saveNews(NewsView newsView);

    /**
     * 获取新闻详情
     * @param newsId
     * @Create user jacky
     * @Create date 2018/3/9
     * @return
     */
    ReturnResultUtil queryNewsInfo(Long newsId);

    /**
     * 撤回新闻
     * @param newsId
     * @Create user jacky
     * @Create date 2018/3/9
     * @return
     */
    ReturnResultUtil withdraw(Long newsId);

    /**
     * 发布新闻
     * @param newsId
     * @Create user jacky
     * @Create date 2018/3/9
     * @return
     */
    ReturnResultUtil publisNews(Long newsId);
}
